-- GENERATED SPELL FOR [Flying Fiend] --


function spell0_28759(pUnit, Event) --@Gargoyle Strike,n/a--
pUnit:FullCastSpellOnTarget(16564,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28759', 1500, 1)
end

function Sorts_28759(pUnit, Event)
local choix_sorts_28759 = math.random(0, 0)
if choix_sorts_28759 == 0 then
pUnit:RegisterEvent('spell0_28759', 1, 1)
end
end

function mob28759_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28759', math.random(1500, 3000), 1)
end

function mob28759_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28759_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28759_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28759, 1, 'mob28759_Action')
RegisterUnitEvent(28759, 2, 'mob28759_Leave')
RegisterUnitEvent(28759, 3, 'mob28759_Kill')
RegisterUnitEvent(28759, 4, 'mob28759_Die')
